package com.apex.aolonfitdemo.ui;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.apex.aolonfit.AolonFitManager;
import com.apex.aolonfitdemo.R;
import com.apex.aolonfitdemo.databinding.ActivityFindWatchBinding;
import com.apex.ax_bluetooth.core.EABleManager;
import com.apex.ax_bluetooth.enumeration.EABleConnectState;


public class FindWatchActivity extends AppCompatActivity {
    ActivityFindWatchBinding activityFindWatchBinding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        activityFindWatchBinding = ActivityFindWatchBinding.inflate(getLayoutInflater());
        setContentView(activityFindWatchBinding.getRoot());
        activityFindWatchBinding.tool.setNavigationIcon(R.mipmap.exit_page);
        setSupportActionBar(activityFindWatchBinding.tool);
        getSupportActionBar().setTitle(null);
        activityFindWatchBinding.tool.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        activityFindWatchBinding.submit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                AolonFitManager.getInstance().findDevice();

            }
        });
    }
}
